package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.QuanMaoCardOrder;
import com.ecoolex.discount.sales.entity.QuanMaoCardOrderExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface QuanMaoCardOrderMapper {
    long countByExample(QuanMaoCardOrderExample example);

    int deleteByExample(QuanMaoCardOrderExample example);

    int deleteByPrimaryKey(Long orderId);

    int insert(QuanMaoCardOrder record);

    int insertSelective(@Param("record") QuanMaoCardOrder record, @Param("selective") QuanMaoCardOrder.Column ... selective);

    QuanMaoCardOrder selectOneByExample(QuanMaoCardOrderExample example);

    QuanMaoCardOrder selectOneByExampleWithBLOBs(QuanMaoCardOrderExample example);

    List<QuanMaoCardOrder> selectByExampleWithBLOBs(QuanMaoCardOrderExample example);

    List<QuanMaoCardOrder> selectByExample(QuanMaoCardOrderExample example);

    QuanMaoCardOrder selectByPrimaryKey(Long orderId);

    QuanMaoCardOrder selectByPrimaryKeyWithLogicalDelete(@Param("orderId") Long orderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") QuanMaoCardOrder record, @Param("example") QuanMaoCardOrderExample example, @Param("selective") QuanMaoCardOrder.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") QuanMaoCardOrder record, @Param("example") QuanMaoCardOrderExample example);

    int updateByExample(@Param("record") QuanMaoCardOrder record, @Param("example") QuanMaoCardOrderExample example);

    int updateByPrimaryKeySelective(@Param("record") QuanMaoCardOrder record, @Param("selective") QuanMaoCardOrder.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(QuanMaoCardOrder record);

    int updateByPrimaryKey(QuanMaoCardOrder record);

    int batchInsert(@Param("list") List<QuanMaoCardOrder> list);

    int batchInsertSelective(@Param("list") List<QuanMaoCardOrder> list, @Param("selective") QuanMaoCardOrder.Column ... selective);

    int logicalDeleteByExample(@Param("example") QuanMaoCardOrderExample example);

    int logicalDeleteByPrimaryKey(Long orderId);
}